package com.zjw.spring.model;

public class AutowireBean {

	private String self;

	private Person person;
	private Car car;

	public String getSelf() {
		return self;
	}

	public void setSelf(String self) {
		this.self = self;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson(Person person) {
//	public void setPerson1(Person person) {// autowire="byName" will fail!!!
		this.person = person;
	}

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	@Override
	public String toString() {
		return "AutowireBean [self=" + self + ", person=" + person + ", car="
				+ car + "]";
	}
	
}
